//
//  CutComponent.h
//  SchoolLunchFood
//
//  Created by luotianqiang1 on 16/10/25.
//
//

#ifndef CutComponent_hpp
#define CutComponent_hpp

#include "TouchLineComonent.h"
#include "TouchMoveComponent.h"
class CutComponent: public LQComponent{
    DECLARE_COMPONENT_DYNCLASS(CutComponent);
public:
    void setCutPoints(const vector<Vec2>&);
    void setTarget(LQPolygon*);
protected:
    bool init();
    void touchMoveCut(LQComponent*,OperateListner*);
protected:
    vector<Vec2> cutPoints;
    int cutCount;
    TouchLineComonent* linerComonent;
    TouchMoveComponent* touchMove;
    Vec2 prePos;
public:
     static const string move_to_target;
     static const string cut_count;
     static const string cut_end;
};
#endif /* CutComponent_hpp */
